import request from '../units/request'

const api = {
    login:'/login', //登陆
    mess:'/wish',  // 留言
    user:'/admin'
}
/**
 * 
 * @param {userName,passWord} obj
 * 
 *  登陆
 */
export function Login(obj){
    // return request.post(api.login,obj)
    return request({
        url:api.login,
        method:'post',
        data:obj
    })
}